package book;

public class book {
    private String name;
    private String autro;
    private String type;
    private int pice;
    private boolean state;
    public book(String name,String autro,String type,int pice){
        this.name=name;
        this.autro=autro;
        this.type=type;
        this.pice=pice;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAutro() {
        return autro;
    }

    public void setAutro(String autro) {
        this.autro = autro;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getPice() {
        return pice;
    }

    public void setPice(int pice) {
        this.pice = pice;
    }

    public boolean getState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "book{" +
                "name='" + name + '\'' +
                ", autro='" + autro + '\'' +
                ", type='" + type + '\'' +
                ", pice=" + pice +
                ", state=" + (state?"已借阅":"未借阅") +
                '}';
    }
}
